@echo off

set "CURRENT_DIR=%cd%"
set "TEMPDIR=%CURRENT_DIR%\temp"
set "TEMPDIR1=%CURRENT_DIR%\temp1"
set "TEMPFILE=%TEMPDIR%\tempfile.txt"
set "TEMPFILE1=%TEMPDIR%\tempfile1.txt"

echo File Exist Check
if exist %TEMPFILE% (
    echo %TEMPFILE% exist
) else (
    echo %TEMPFILE% not exist
)
pause

echo Create Folder
mkdir %TEMPDIR%
pause

echo File Write - Overwrite
echo "Hello World" >%TEMPFILE%
pause

echo File Write - Append
echo "Hello World 1" >>%TEMPFILE%
pause

echo File Read - Read First Line
set /P str=<%TEMPFILE%
echo %str%
pause

echo File Read - Read Lines One By One
for /f "tokens=*" %%i in (%TEMPFILE%) do (
	echo %%i
)
pause

echo Copy File
copy %TEMPFILE% %TEMPFILE1%
pause

echo Delete File
del /F /S /Q %TEMPFILE%
pause

echo Move Folder
move %TEMPDIR% %TEMPDIR1% 
pause

echo Delete Folder
rmdir /S /Q %TEMPDIR1%
pause